package com.ftg.product.exam.dto;

import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;
import com.ftg.product.exam.entity.ExamOptions;
import com.ftg.product.exam.entity.ExamSelect;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
* 用来存储选择题，相应的选项，比如ABCDE等相应的选项 DTO定义
* @author kangjx
* @version 1.0
* @date 2021-01-14
 * Copyright © ftg
*/
@Getter @Setter @Accessors(chain = true)
public class ExamOptionsDTO extends ExamOptions  {
    private static final long serialVersionUID = 1967937085861826438L;

    /**
    * 关联字段 ExamSelect.title
    */
    @BindQuery(comparison = Comparison.EQ, entity = ExamSelect.class, field = "title", condition = "this.selcode=id")
    private String selcodeTitle;
}